<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>彩色导航</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .nav {
            margin-top: 20px;
            margin-left: 20px;
        }

        .nav>li {
            float: left;
            width: 120px;
            height: 58px;
            line-height: 50px;
            text-align: center;
            color: white;
            margin-right: 20px;
            border-radius: 7px;
        }

        .nav>li:nth-of-type(1) {
            background-image: url(https://img.imgdb.cn/item/603a0f2b5f4313ce25146b0a.png);
        }

        .nav>li:nth-of-type(1):hover {
            background-image: url(https://img.imgdb.cn/item/603a10655f4313ce2515884a.png);
        }

        .nav>li:nth-of-type(2) {
            background-image: url(https://img.imgdb.cn/item/603a0f2b5f4313ce25146b0d.png);
        }

        .nav>li:nth-of-type(2):hover {
            background-image: url(https://img.imgdb.cn/item/603a10655f4313ce2515884a.png);
        }

        .nav>li:nth-of-type(3) {
            background-image: url(https://img.imgdb.cn/item/603a0f2b5f4313ce25146b08.png);
        }

        .nav>li:nth-of-type(3):hover {
            background-image: url(https://img.imgdb.cn/item/603a0ffa5f4313ce25153078.png);
        }

        .nav>li:nth-of-type(4) {
            background-image: url(https://img.imgdb.cn/item/603a0ffa5f4313ce25153078.png);
        }

        .nav>li:nth-of-type(4):hover {
            background-image: url(https://img.imgdb.cn/item/603a0f2b5f4313ce25146b08.png);
        }
    </style>
</head>

<body>
    <ul class="nav">
        <li>菜单一</li>
        <li>菜单二</li>
        <li>菜单三</li>
        <li>菜单四</li>
    </ul>

</body>

</html>